package com.example.perpetualcalendar.domain.entity;

import com.example.perpetualcalendar.constant.AppConst;
import com.example.perpetualcalendar.constant.Sort;

import java.util.Random;

public class JokeRequest {
    private String sort;
    private int page;
    private int pagesize;
    private int time;
    private String key;

    public JokeRequest() {
        this.sort = Sort.values()[new Random().nextInt(2)].toString();
        this.page = new Random().nextInt(10) + 1;
        this.pagesize = new Random().nextInt(10) + 1;
        this.time = 1418916972;
        this.key = AppConst.JOKE_KEY;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPagesize() {
        return pagesize;
    }

    public void setPagesize(int pagesize) {
        this.pagesize = pagesize;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }
}
